package com.redBook.service;

import com.redBook.dto.NoteCommentDTO;
import com.redBook.dto.UserLoginDTO;
import com.redBook.entity.*;
import com.redBook.result.PageResult;
import com.redBook.vo.UserLoginVO;

import java.util.List;

public interface UserService {
    List<Category> getCategoryList();

    List<CategoryChild> getCategoryChildList();

    UserLoginVO login(UserLoginDTO userLoginDTO);

    PageResult<NoteInfo> findNotesByPage(long startPage, long size);

    UserDetail findUserById(Long uid);

    NoteDetail noteDetail(Long noteId);

    void addNote(List<String> pathList,
                 Long uid,
                 String title,
                 String context,
                 String power,
                 String address,
                 List<Long> height,
                 List<Long> width);

    void submitComment(NoteCommentDTO noteCommentDTO);

    PageResult<NoteInfo> findNotesByPageAndUser(long l, long size, Long userId);
}
